/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.po.DocumentReleaseOftenUsePO;
import com.xy.biz.fd.domain.query.DocumentReleaseOftenUseQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-6-15
 */
public interface DocumentReleaseOftenUseDao {
	
	/**
	 * 保存
	 *
	 * @param documentReleaseOftenUsePO
	 */
	int saveDocumentReleaseOftenUse(DocumentReleaseOftenUsePO documentReleaseOftenUsePO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentReleaseOftenUse(Collection<DocumentReleaseOftenUsePO> collection);
	
	/**
	 * 更新
	 *
	 * @param documentReleaseOftenUsePO
	 */
	int updateDocumentReleaseOftenUse(DocumentReleaseOftenUsePO documentReleaseOftenUsePO);

	/**
	 * 更新
	 *
	 * @param documentReleaseOftenUsePO
	 */
	int increment(DocumentReleaseOftenUsePO documentReleaseOftenUsePO);

	/**
	 * 删除
	 *
	 * @param documentReleaseOftenUseId
	 */
	int deleteDocumentReleaseOftenUse(Long documentReleaseOftenUseId);
	
	/**
	 * 查找一个
	 *
	 * @param documentReleaseOftenUseId
	 * @return
	 */
	DocumentReleaseOftenUsePO getDocumentReleaseOftenUse(Long documentReleaseOftenUseId);

	/**
	 * 查找一个
	 *
	 * @param documentReleaseOftenUsePO
	 * @return
	 */
	DocumentReleaseOftenUsePO getDocumentReleaseOftenUseByBO(DocumentReleaseOftenUsePO documentReleaseOftenUsePO);

	/**
	 * 查找多条
	 *
	 * @param collection 
	 * @return
	 */
	List<DocumentReleaseOftenUsePO> listDocumentReleaseOftenUseById(Collection<Long> collection);
	
	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentReleaseOftenUsePO> listDocumentReleaseOftenUse(DocumentReleaseOftenUseQuery query);
	
	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentReleaseOftenUse(DocumentReleaseOftenUseQuery query);
	
}
